package com.solomon.travel.common.custom.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.solomon.travel.common.custom.po.DiningRoomCustom;
import com.solomon.travel.common.custom.po.HotelCustom;
import com.solomon.travel.common.custom.po.MettingRoomCustom;
import com.solomon.travel.common.model.Page;
import com.solomon.travel.common.po.Hotel;

public interface HotelCustomMapper {
	HotelCustom getHotelByUser(String userId);
	DiningRoomCustom getDiningRoomByHotel(String hotelId);
	MettingRoomCustom getMettingRoomByHotel(String hotelId);
	List<Hotel> listByPage(@Param("page")Page page);
	Integer countBySerch(@Param("hotel")Hotel hotel,@Param("minRoomNum")Integer minRoomNum,@Param("maxRoomNum")Integer maxRoomNum);
	List<Hotel> listBySerch(@Param("hotel")Hotel hotel,@Param("minRoomNum")Integer minRoomNum,@Param("maxRoomNum")Integer maxRoomNum,@Param("page")Page page);
}
